package com.ruoyi.system.domain.vo.eCatalog;

import com.ruoyi.system.domain.ProductInfo;
import lombok.Data;

import java.util.List;

/**
 * @ClassName : CarECatalogVo
 * @Description :
 * @Author :
 * @Date: 2023-01-27 19:46
 */
@Data
public class ECatalogInfoVo extends ProductInfo{

    private String category;

    private Long parentId;

    private String engineModel;

    private String[] imageList;

    public String[] getImageList() {
        return super.getImage().split(",");
    }

    @Override
    public String getProductYear() {
        return super.getProductYear().substring(0,4);
    }

    @Override
    public String getProductStartTime() {
        return super.getProductStartTime().substring(0,4);
    }

    @Override
    public String getProductEndTime() {
        return super.getProductEndTime().substring(0,4);
    }
}
